<template>
	<view class="conpony_detail">
		<p class="flex jcc aic fontz fonts18 fontw700 ">{{data.announcementTitle}}</p>
		<p class="flex jcc aic fontz fonts14 " style="margin-top: 8px;"> 来源：{{data.userTenant.companyName}}</p>
		<p class="flex jcc aic fontz fonts14 conpony_detail_title" style="margin-top: 8px;"> 发布时间：{{data.createTime}}</p>
		<p class="fontz fonts14 conpony_detail_main" style="margin-top: 16px;">
			{{data.announcementContents}}
		</p>
		<el-table :data="tableData" style="width: 100%;margin-top: 16px;" >
		    <el-table-column label="录用名单" align="center">
		      <el-table-column prop="fullName" label="姓名" align="center"/>
		      <el-table-column prop="positionName" label="岗位名称" align="center"/>
		      <el-table-column prop="idNumber" label="身份证号"  align="center"/>
		    </el-table-column>
		  </el-table>
	</view>
</template>

<script>
	import {companyAnnouncementDetail} from "@/api/index"
	export default {
		data() {
			return {
				data:{},
				tableData:[]
			};
		},
		onLoad(options) {
			let id=JSON.parse(options.data).id
			this.companyAnnouncementDetailApi(id)
		},
		methods:{
			companyAnnouncementDetailApi(params){
				companyAnnouncementDetail(params).then(res=>{
					this.data=res.data
					this.tableData=JSON.parse(res.data.remark)
				})
			}
		}
	}
</script>

<style lang="scss">
	.conpony_detail{
		padding: 0 16px 30px 16px;
	}
	.conpony_detail_title{
		padding-bottom: 16px;
		border-bottom: 1px solid #f2f2f2;
	}
	.conpony_detail_main{
		text-indent: 30px;
		line-height: 24px;
	}

</style>
